package com.base.logistics.jdl.bean.print;

import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 * 获取打印数据响应对象
 * </pre>
 * @since 2021-02-26
 */
public class PullDataResponse  implements Serializable {

    /**
     * 响应码
     */
    private String code;

    /**
     * 响应码
     */
    private String message;

    /**
     * 源传入本次打印数据请求ID
     */
    private String objectId;

    /**
     * 打印数据密文列表
     */
    private List<PrePrintDataInfo> prePrintDatas;

    public PullDataResponse() {
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public String getObjectId() {
        return this.objectId;
    }

    public List<PrePrintDataInfo> getPrePrintDatas() {
        return this.prePrintDatas;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    public void setPrePrintDatas(List<PrePrintDataInfo> prePrintDatas) {
        this.prePrintDatas = prePrintDatas;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof PullDataResponse)) return false;
        final PullDataResponse other = (PullDataResponse) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$code = this.getCode();
        final Object other$code = other.getCode();
        if (this$code == null ? other$code != null : !this$code.equals(other$code)) return false;
        final Object this$message = this.getMessage();
        final Object other$message = other.getMessage();
        if (this$message == null ? other$message != null : !this$message.equals(other$message)) return false;
        final Object this$objectId = this.getObjectId();
        final Object other$objectId = other.getObjectId();
        if (this$objectId == null ? other$objectId != null : !this$objectId.equals(other$objectId)) return false;
        final Object this$prePrintDatas = this.getPrePrintDatas();
        final Object other$prePrintDatas = other.getPrePrintDatas();
        if (this$prePrintDatas == null ? other$prePrintDatas != null : !this$prePrintDatas.equals(other$prePrintDatas))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof PullDataResponse;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $code = this.getCode();
        result = result * PRIME + ($code == null ? 43 : $code.hashCode());
        final Object $message = this.getMessage();
        result = result * PRIME + ($message == null ? 43 : $message.hashCode());
        final Object $objectId = this.getObjectId();
        result = result * PRIME + ($objectId == null ? 43 : $objectId.hashCode());
        final Object $prePrintDatas = this.getPrePrintDatas();
        result = result * PRIME + ($prePrintDatas == null ? 43 : $prePrintDatas.hashCode());
        return result;
    }

    public String toString() {
        return "PullDataResponse(code=" + this.getCode() + ", message=" + this.getMessage() + ", objectId=" + this.getObjectId() + ", prePrintDatas=" + this.getPrePrintDatas() + ")";
    }
}
